function munes(paths) {
	let mune = [];
	if(paths) {
		for(var i = paths.length - 1; i >= 0; i--) {
			let path = paths[i];
			var items = item(path.text, path.icon, path.path,path.name,path.view);
			if(items) {
				mune.push(items);
			}
		}
	}
	return mune
}

function item(text, icon, to,name,view) {
	let mune;
	if(text && icon && to && view) {
		mune = {
			text: text,
			icon: icon,
			to: to,
			name:name,
			view:view
		}
	}
	if(mune) {
		return mune;
	}
}

function appendPage(url, page, size) {
	return url + (page||1) + '/' + (size||10);
}
export default {
	munes,
	appendPage
}
